package me.hunche.app.service;

import java.util.Date;
import java.util.List;

import org.springframework.web.bind.annotation.RequestParam;

import me.hunche.app.domain.Activity;

import com.feinno.framework.common.service.EntityService;

/**
 * 活动表 Service
 *
 * Date: 2013-05-21 22:36:05
 *
 * @author Acooly Code Generator
 *
 */
public interface ActivityService extends EntityService<Activity> {
	
	public List<Activity> findByActivityDateAndStatus(Date d, int statusVaild);
	
	public List<Activity> findRecruitActivitys();
	public List<Activity> findReadyActivitys();
//	public List<Activity> findGoingActivitys();
	public List<Activity> findOverActivitys();

	public Activity createActivity(Activity activity);
	public Activity createActivity(Date d, String line, String rendezvous,Date rendezvousTime);
	
	public Activity findActivityById(Long activityId);
	
	/** 查找当前用户所在组募集中的活动 */
	public List<Activity> findRecruitActivityByTeamId(Long teamId);
	
	public List<Activity> getLatestActivitys(Long teamId,Integer maxResults);
	
	public List<Activity> findByPage(Long teamId,Long maxId,Integer sinceId,Integer count);

}
